﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Visual/Template/padrao.master" AutoEventWireup="true" CodeFile="ListPlugin.aspx.cs" Inherits="Visual_CRUD_Plugins_ListPlugin" %>
<asp:Content ID="Content3" ContentPlaceHolderID="head" runat="server">
    <link href="../../../Styles/interfacemetro/css/modern-responsive.css" rel="stylesheet"
        type="text/css" />
    <link href="../../../Styles/interfacemetro/css/modern.css" rel="stylesheet" type="text/css" />
    <link href="../../../Styles/menustyles.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .style1
        {
            width: 109px;
        }
        .style2
        {
            width: 499px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="header" runat="server">
    <div class="">
        <h1>
            Plugin List</h1>
    </div>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ConteudoDinamico" runat="server">
 <a class="shortcut" href="InstallPlugin.aspx"><span
            class="icon"><i class="icon-plus"></i></span>
            <br />
            <span class="label">Install Plugin </span></a>
    <br />
    <div class="table hovered ">
        <asp:GridView ID="GridPlugins" runat="server" DataSourceID="DSPlugins" Width="890px"
            AllowPaging="True" AllowSorting="True" 
            OnSelectedIndexChanged="selecionarPlugin" 
            EmptyDataText="No registers found." AutoGenerateColumns="False">
            <Columns>
                <asp:BoundField DataField="id" HeaderText="ID" />
                <asp:BoundField DataField="description" HeaderText="Plugins" />
                <asp:BoundField DataField="version" HeaderText="Version" />
                <asp:BoundField DataField="localization" HeaderText="Localization" />
                <asp:BoundField DataField="procedurename" HeaderText="Procedure" />
                <asp:CommandField ButtonType="Image" SelectImageUrl="~/Visual/Imagens/edit.png" ShowSelectButton="True" />
            </Columns>
            <HeaderStyle Height="30px" />
        </asp:GridView>
        <asp:SqlDataSource ID="DSPlugins" runat="server" ConnectionString="<%$ ConnectionStrings:vsdbmConnectionString %>"
            ProviderName="<%$ ConnectionStrings:vsdbmConnectionString.ProviderName %>" 
            SelectCommand="SELECT * FROM plugins">
        </asp:SqlDataSource>
        <br />
    </div>
    

    </asp:Content>
